#ifndef DATAREAD_H
#define DATAREAD_H

#include <QObject>
#include <QWidget>
#include "heads.h"
class DATAREAD : public QObject
{
    Q_OBJECT
public:
    DATAREAD();
    void openFile();
//    void decodeList(const QStringList& list);
    QStringList getLogData(int log);
    int getMapSize();

    void setDeltaZMax(int index, double val);
    void mathDeltaZ();
public:
    QVector<QStringList> datamap;
    void setZ0();
    QVector<double> z_zero_vec;
//    QVector<double> delta_z_vec;
    QVector<double> delta_z_max_vec;
    QStringList getZData(QStringList list);
public:
    void initDeltaZMax(QVector<double>& vec);
    QVector<double> delta_z_vec;
    void checkwarn();
signals:
    void updateWarn(int, bool);
};

#endif // DATAREAD_H
